package com.whz.eq;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @Author: sinosoft
 * @Description: 继承自Point
 * @Date: Create in 17:16 2021/4/30
 * @Modified By:
 */
public class CounterPoint extends Point {
    private static final AtomicInteger counter = new AtomicInteger();
    public CounterPoint(int x, int y) {
        super(x, y);
        counter.incrementAndGet();
    }
    public static int numberCreated() {
        return counter.get();
    }


}
